<template>
  <div>
    <el-button @click="commEvent.openDirectory">打开文件夹</el-button>
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue"

const mySrc = ref<string>("")
const commEvent = {
  openDirectory: async () => {
    try {
      const _wind = window as any
      await _wind?.showOpenFilePicker()
    } catch (error) {
      console.log(error)
    }
  }
}
</script>

<style lang="scss" scoped></style>
